package com.hgyc.mom.eam.enums;

/**
 * 点检保养项目类型字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-08-15 15:01:59
 * @version 1.0
 **/
public enum EquipmentMaintainProgramTypeEnum {
    SPOT_CHECK("spot_check", "点检"),
    MAINTAIN("maintain", "保养"),
    VERIFY("verify", "校验")
    ;

    private final String value;
    private final String label;

    EquipmentMaintainProgramTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static EquipmentMaintainProgramTypeEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (EquipmentMaintainProgramTypeEnum item : EquipmentMaintainProgramTypeEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

